Skip to content

run-task: silence python 3.12 deprecation warning #639

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

jcristau
Copy link
Contributor

/usr/local/bin/run-task:118: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  now = datetime.datetime.utcnow().isoformat().encode("utf-8")

This slightly changes the output, replacing Z with +00:00 for the timezone component.

```
/usr/local/bin/run-task:118: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
  now = datetime.datetime.utcnow().isoformat().encode("utf-8")
```

This slightly changes the output, replacing `Z` with `+00:00` for the
timezone component.
@jcristau jcristau requested review from a team and Eijebong January 29, 2025 14:34
@jcristau jcristau merged commit 7e01bbb into taskcluster:main Jan 29, 2025
21 checks passed
@jcristau jcristau deleted the utcnow branch January 29, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants